Skip to content

Update gha#3733

Open
briehl wants to merge 5 commits into
developfrom
update-gha
Open

Update gha#3733
briehl wants to merge 5 commits into
developfrom
update-gha

Conversation

@briehl

@briehl briehl commented Jul 16, 2026

Copy link
Copy Markdown
Member

Description of PR purpose/changes

Fix the Github Actions that changed when the kbase org moved away from org secrets, specifically the image build and push workflow.

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 25.85%. Comparing base (fe5f7bc) to head (6c5e320).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3733      +/-   ##
===========================================
- Coverage    25.96%   25.85%   -0.11%     
===========================================
  Files          461      461              
  Lines        46691    46691              
===========================================
- Hits         12122    12072      -50     
- Misses       34569    34619      +50     

see 9 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe5f7bc...6c5e320. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@briehl

briehl commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

The image now builds and pushes. Tests run but fail because some things are outdated, and that's getting fixed in another PR.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates GitHub Actions workflows to authenticate to GHCR using the built-in GITHUB_TOKEN (via github.token) instead of org-level GHCR secrets, aligning CI image workflows with the org’s secret-management changes.

Changes:

  • Switched GHCR docker/login-action credentials from secrets.GHCR_* to ${{ github.actor }} / ${{ github.token }} across multiple workflows.
  • Added explicit job permissions for packages: write in the image build/push reusable workflow.
  • Corrected a GitHub Actions if: expression for the version image build step.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.

File Description
.github/workflows/unit_test.yml Updates GHCR login to use ${{ github.actor }} / ${{ github.token }} for unit-test image pulls.
.github/workflows/integration_test.yml Updates GHCR login to use ${{ github.actor }} / ${{ github.token }} for integration-test image pulls.
.github/workflows/tag_latest_image.yaml Updates GHCR login to use ${{ github.actor }} / ${{ github.token }} for tagging/pushing “latest” images.
.github/workflows/build_and_push_image.yml Adds packages: write permission and updates GHCR login; fixes a conditional expression for building the version image.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/unit_test.yml Outdated
Comment on lines +19 to +23
uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.actor }}
password: ${{ github.token }}
Comment on lines 21 to +23
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.actor }}
password: ${{ github.token }}
Comment thread .github/workflows/integration_test.yml Outdated
Comment on lines +19 to +23
uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.actor }}
password: ${{ github.token }}
Comment on lines 21 to +23
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.actor }}
password: ${{ github.token }}
Comment on lines +16 to +18
permissions:
contents: read
packages: write
Comment on lines +54 to +55
username: ${{ github.actor }}
password: ${{ github.token }}
Comment on lines 72 to 75
name: Build version image
uses: docker/build-push-action@master
if: ${{ github.base_ref }} == 'main' || ${{ github.base_ref }} == 'develop'
if: ${{ github.base_ref == 'main' || github.base_ref == 'develop' }}
with:
Comment thread .github/workflows/tag_latest_image.yaml Outdated
Comment on lines +22 to +26
uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.actor }}
password: ${{ github.token }}
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@master
uses: docker/setup-buildx-action@v4
-
name: Log in to the Container registry
uses: docker/login-action@master
uses: docker/login-action@v4
-
name: Build narrative image
uses: docker/build-push-action@master
uses: docker/build-push-action@v7
name: Build version image
uses: docker/build-push-action@master
if: ${{ github.base_ref }} == 'main' || ${{ github.base_ref }} == 'develop'
uses: docker/build-push-action@v7
-
name: Log in to the Container registry
uses: docker/login-action@master
uses: docker/login-action@v4
-
name: Log in to the Container registry
uses: docker/login-action@master
uses: docker/login-action@v4
-
name: Log in to the Container registry
uses: docker/login-action@master
uses: docker/login-action@v4
Comment thread .github/workflows/unit_test.yml Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants